#ifndef __ROBOT_SDH_CHANDCLIENT_H__
#define __ROBOT_SDH_CHANDCLIENT_H__

#include <robot/robot.h>
#include <blackbox/proxies.h>
#include <blackbox/cimage.h>

namespace buola { namespace robot { namespace sdh {

using namespace buola;

class CSensorsClient
{
public:
    CSensorsClient(const blackbox::CBoxProxy &pBox=blackbox::CClientProxy("bbsdh")["sensors"]);
    ~CSensorsClient();

    //!returns a frame for one of the sensors
    blackbox::CImage_gray32f GetFrame(int pSensor);
    //!waits until a new frame is ready from the sensors
    void WaitNextFrame();
    
private:
    blackbox::CBoxProxy mSensorsBox;
};

/*namespace sdh*/ } /*namespace robot*/ } /*namespace buola*/ }

#endif
